package com.exercise.widgets.dialog

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter

class StringAdapter(
    context: Context,
    val layoutResId: Int,
    dataList: MutableList<String>
) : ArrayAdapter<String>(context, layoutResId, dataList) {
    override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
        val view = convertView ?: LayoutInflater.from(context).inflate(layoutResId, parent, false)

        return super.getView(position, convertView, parent)
    }
}